package com.heima.api;

import com.heima.schedule.dtos.Task;
import com.heima.user.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-schedule")
public interface TaskFeign {

    @PostMapping("task/addtask")
    ResponseResult addTask(@RequestBody Task task);
}
